for n in 'abcdefg':
    if n=='d':
        break
    print(n)

n=0
while True:
    n+=1
    if n==5:
        break
    else:
        print(n)
